package com.i18n.plugin.store

import cn.hutool.json.JSONObject
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.vfs.VirtualFile

class I18nStore : PersistentStateComponent<I18nStore.State> {
    class State {
        //存储i18n语言json的文件
        var i18nFiles=ArrayList<VirtualFile>()
        var i18nJson:JSONObject=JSONObject()
    }

    private var state = State()
    override fun getState(): State {
        return this.state
    }

    override fun loadState(p0: State) {
        this.state = p0
    }
}